home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / SwitchBox / Makefile.postamble < prev    next >
Makefile  |  1995-06-12  |  2KB  |  45 lines

  1. # Makefile.postamble,v
  2. # Revision 1.1.1.1  1992/09/14  13:53:41  nwc
  3. # NS3-GENESIS
  4. #
  5. # Revision 1.2  1992/09/14  04:59:39  nwc
  6. # Made the Palette preamble and postamble NeXTSTEP 3.0 compatible.
  7. #
  8. # Revision 1.1.1.1  1992/08/03  02:51:34  nwc
  9. # Genesis
  10. #
  11. # Revision 1.3  1992/07/31  14:34:30  nchristo
  12. # Typo correction
  13. #
  14. # Revision 1.2  1992/07/31  14:32:29  nchristo
  15. # Added caveat to postamble.
  16. #
  17. # Revision 1.1  1992/07/16  12:53:10  nchristo
  18. # Initial revision
  19. #
  20. # Generic Palette .postamble
  21.  
  22. # NB: There is a slight kludge here. The library associated with this palette
  23. # is built using "ld -r" not the ar command. This relieves the programmer from
  24. # using "-u object" in thier make files. Very nice. However EVERYTHING included
  25. # in the "ld -r" will get pulled into any app that includes the lib. So you
  26. # should be more selective as to what goes into the lib. For instance the
  27. # inspectors should not be in the lib.  I create the lib based on the
  28. # CLASSES and PSWFILES variables. So, in ProjectBuilder the inspectors
  29. # should be added to the project "Other Sources" not as "Classes". 
  30. # This will insure they get put in the palette but not the lib.
  31.  
  32.  
  33. LOBJS = $(CLASSES:.m=.o) $(PSWFILES:.psw=.o)
  34. LHFILES = $(CLASSES:.m=.h) $(PSWFILES:.psw=.h)
  35.  
  36. PRODUCTLIB = lib$(NAME).a
  37. PRODUCTLIBDIR = $(INSTALLDIR)/lib
  38. PRODUCTINCDIR = $(INSTALLDIR)/include/$(NAME)
  39.  
  40. install:: 
  41.     ld -r $(LOBJS) -o $(PRODUCTLIB)
  42.     mkdirs $(PRODUCTLIBDIR) $(PRODUCTINCDIR)
  43.     install -c -m 644 $(PRODUCTLIB) $(PRODUCTLIBDIR)
  44.     install -c -m 644 $(LHFILES) $(PRODUCTINCDIR)
  45.